HallCtrl = {};
local this = HallCtrl;

local behaviour;
local transform;
local gameObject;

function HallCtrl.New()
    logWarn("HallCtrl.New --->>>");
    return this;
end

function HallCtrl.Awake()
    logWarn("HallCtrl.Awake ---->>>");
end

function HallCtrl.OnCreate(obj)
    gameObject = obj;
    transform = obj.transform;

    UIEventEx.AddButtonClick(HallPanel.RankingButton, function ()
        log("你点击了排行榜按钮");
        HallPanel.RankingPanel.gameObject:SetActive(true);
        --初始化RankItem
        --require("View/Hall/RankingPanel");
        --RankingPanel.InitPanel();
    end);

    UIEventEx.AddButtonClick(HallPanel.ShopButton, function ()
        log("你点击了商店按钮");
        local shopCtrl = CtrlManager.GetCtrl(CtrlNames.Shop);
        shopCtrl:Awake();
    end);

end

function HallCtrl.OnClick(go)
    destroy(gameObject);
end

function HallCtrl.Close()
    panelMgr:ClosePanel(CtrlNames.Hall);
end